home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, pphotonum
- global grefnum, gmyphotonum, gphotoloclist, grgbspnum, grgblist, gdefaultdata, gsaveddata, geyesinfo
-
- on beginSprite me
- set pphotonum to the name of the member of sprite spriteNum
- end
-
- on mouseDown me
- cursor(4)
- go("photo")
- updateStage()
- set gmyphotonum to pphotonum
- set gphotoloclist to value(line value(gmyphotonum) of gsaveddata)
- sort(gphotoloclist)
- set mlist to [:]
- repeat with m = 1 to count(gphotoloclist)
- set mlist to getAt(gphotoloclist, m)
- sort(mlist)
- if not (findPos(mlist, #rgb) = VOID) then
- set grgblist to getaProp(mlist, #rgb)
- end if
- end repeat
- set grefnum to 0
- set grgbspnum to 0
- set stagerect to the rect of the stage
- set the rect of window pphotonum to inflate(stagerect, -48, -70)
- set the windowType of window pphotonum to 2
- set the fileName of window pphotonum to "@/dir/" & string(pphotonum)
- open(window pphotonum)
- set eyes to line value(pphotonum) of field "eyesPointList"
- set geyesinfo to value(eyes)
- case gmyphotonum of
- 2, 28:
- set toolwidth to 112
- set toolhight to 210
- otherwise:
- set toolwidth to 208
- set toolhight to 210
- end case
- set pix to 43
- set the rect of window "Tools" to the rect of the stage + rect(800 - toolwidth, pix, 0, -(600 - (pix + toolhight)))
- set the windowType of window "Tools" to 49
- set the fileName of window "Tools" to "@/tool"
- open(window "Tools")
- cursor(-1)
- end
-